﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Custom.Infrastructure.EventBus
{
    public class TEventEntity : ITEventEntity
    {
        /// <summary>
        /// 发送方
        /// </summary>
        public string Sender { get; set; }

        /// <summary>
        /// 接收方
        /// </summary>
        public string Receiver { get; set; }

        /// <summary>
        /// 事件名称
        /// </summary>
        public string ActionName { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public object Data { get; set; }

        /// <summary>
        /// 消息体
        /// </summary>
        public string Message { get; set; } = string.Empty;
        public DateTime DateTime { get; set; } = DateTime.Now;
        
    }
}
